package fhp.hlhj.giantfold.presenter

import com.lzy.okgo.model.HttpParams
import fhp.hlhj.giantfold.interfaces.IMerchant
import fhp.hlhj.giantfold.javaBean.MerchantBean
import fhp.hlhj.giantfold.module.MerChantModule

/**
 * Created by Administrator on 2018\2\9 0009.
 */
class MerChantPresenter(private val iMerchant: IMerchant) : MerChantModule.OnMerChantResp {

    private val module=MerChantModule()

    fun getMerchant(params: HttpParams){
        module.getMerchants(params,this)
    }

    override fun showLoading() {
        iMerchant.showLoading()
    }

    override fun onResp(t: MerchantBean) {
        iMerchant.getmerchant(t)
    }
}